﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HiLand.Utility.Web;

namespace WebDemo
{
    public partial class FileDownDemo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string fileToOperate = this.MapPath("~/Downs/fileToDown.jpg");
            DownloadHelper.Down(fileToOperate,"你好.jpg");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            string fileToOperate = this.MapPath("~/Downs/fileToDown.jpg");
            DownloadHelper.TransmitFile(fileToOperate, "你好啊.jpg");
        }
    }
}